package com.ode.demo1;

import demo2.IRunning;
import demo2.ISPring;

public class Dog extends Animal implements ISPring, IRunning {
    @Override
    public void eat() {
        System.out.println("狗吃狗粮");
    }

    @Override
    public void test1() {
        System.out.println("狗的test1方法");
    }
    public void test4(){
        System.out.println("执行狗的特定test方法");
    }
    @Override
    public void test3() {
        System.out.println("执行重写的test方法");
    }

    @Override
    public void run() {
        System.out.println("狗在跑步！");
    }
}
